/**
 * @author cmtlyt
 * @version v1.0
 */

package chapter02;

/*
 比较运算符
*/

public class ComparisonOperator {
 public static void main(String[] args) {
  int i = 10;
  int j = 20;
  System.out.printf("%d == %d = %b\n", i, j, i == j);
  boolean b1 = true;
  boolean b2 = false;
  System.out.printf("%b == %b = %b\n", b1, b2, b1 == b2);
  System.out.printf("b1 = %b, b2 = %b\n", b1, b2);
  System.out.printf("%b = %b = %b\n", b1, b2, b1 = b2);
  System.out.printf("%b = %b = %b\n", b2, true, b2 = true);
  System.out.printf("b1 = %b, b2 = %b\n", b1, b2);

 }
}
